﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace HF.WorkFlow.DataContract
{
    /// <summary>
    /// 流程实例数据契约
    /// </summary>
    /// <remarks>描述流程实例的数据契约</remarks>
    [DataContract]
    public class WorkFlowInstanceEntity
    {
        /// <summary>
        ///流程实例Id
        /// </summary>
        [DataMember]
        public string WorkFlowInstanceId { get; set; }
        /// <summary>
        /// 流程模板Id
        /// </summary>
        [DataMember]
        public string WorkFlowId { get; set; }
        /// <summary>
        /// 流程实例编号
        /// </summary>
        [DataMember]
        public string WorkFlowNo { get; set; }
        /// <summary>
        /// 流程名称，有用户输入。
        /// </summary>
        [DataMember]
        public string FlowInstanceCaption { get; set; }
        /// <summary>
        /// 优先级别。1普通,2紧急,3特急
        /// </summary>
        [DataMember]
        public string Priority { get; set; }
        /// <summary>
        /// 流程状态。
        /// </summary>
        [DataMember]
        public string Status { get; set; }
        /// <summary>
        /// 流程实例开始时间。
        /// </summary>
        [DataMember]
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [DataMember]
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 挂起时间。
        /// </summary>
        [DataMember]
        public DateTime SuspendTime { get; set; }
        /// <summary>
        /// 挂起前流程实例的状态。
        /// </summary>
        [DataMember]
        public string SuspendStaus { get; set; }
        /// <summary>
        /// 挂起的总秒数
        /// </summary>
        [DataMember]
        public Int64 SuspendTotalSeconds { get; set; }
        /// <summary>
        /// 是否子流程
        /// </summary>
        [DataMember]
        public bool IsSubWorkFlow { get; set; }
        /// <summary>
        /// 主流程实例Id
        /// </summary>
        [DataMember]
        public string MainWorkFlowInstanceId { get; set; }
        /// <summary>
        /// 主任务实例Id
        /// </summary>
        [DataMember]
        public string MainWorkTaskInstanceId { get; set; }
        /// <summary>
        /// 主任务模板Id
        /// </summary>
        [DataMember]
        public string MainWorkTaskId { get; set; }
        /// <summary>
        /// 主流程模板id
        /// </summary>
        [DataMember]
        public string MainWorkFlowId { get; set; }
        /// <summary>
        /// 流程说明
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        /// <summary>
        /// 当前任务节点id
        /// </summary>
        [DataMember]
        public string NowTaskId { get; set; }
    }

   
}
